//
//  AddFrientController.swift
//  XLWebo
//
//  Created by 陈晓龙 on 17/2/16.
//  Copyright © 2017年 陈晓龙. All rights reserved.
//

import UIKit

class AddFrientController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.title = "第 \(navigationController?.childViewControllers.count ?? 0)个"
        
    }
//重写父类方法
    override func setupTableView(){
        super.setupTableView()
       //自定义右边下一个按钮
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontSize: 16, target: self, action: #selector(nextVC) ,isBack:false)
    }
    
    func nextVC() {
        let vc = AddFrientController()
        
        navigationController?.pushViewController(vc, animated: true)
    }
}
